home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / info-service / gopher / Unix / gopher+1.2b4 / object / STRstring.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-02-11  |  1.3 KB  |  49 lines

  1. /********************************************************************
  2.  * lindner
  3.  * 3.1.1.1
  4.  * 1993/02/11 18:03:04
  5.  * /home/mudhoney/GopherSrc/CVS/gopher+/object/STRstring.h,v
  6.  * $Status: $
  7.  *
  8.  * Paul Lindner, University of Minnesota CIS.
  9.  *
  10.  * Copyright 1991, 1992 by the Regents of the University of Minnesota
  11.  * see the file "Copyright" in the distribution for conditions of use.
  12.  *********************************************************************
  13.  * MODULE: STRstring.h
  14.  * A dynamic string in C that really wants to be C++
  15.  *********************************************************************
  16.  * Revision History:
  17.  * STRstring.h,v
  18.  * Revision 3.1.1.1  1993/02/11  18:03:04  lindner
  19.  * Gopher+1.2beta release
  20.  *
  21.  * Revision 1.1  1992/12/10  23:27:52  lindner
  22.  * gopher 1.1 release
  23.  *
  24.  *
  25.  *********************************************************************/
  26.  
  27.  
  28. #ifndef STRstring_H
  29. #define STRstring_H
  30.  
  31. struct string_struct {
  32.      int  len;
  33.      char *data;
  34. };
  35.  
  36. typedef struct string_struct String;
  37.  
  38. String *STRnew();
  39. String *STRnewSet(/* char* */);
  40. String *STRcpy(/* String, String */);
  41. void    STRinit(/* String*  */);
  42. void    STRset(/* String*, char* */);
  43. void    STRdestroy(/* String* */);
  44. #define STRget(s) ((s)->data)
  45. #define STRlen(s) ((s)->len)
  46. String* STRcat();
  47. int     STRcmp();
  48. #endif
  49.